package com.dds.system.service.app.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dds.system.mapper.app.AppUserMapper;
import com.dds.system.domain.app.AppUser;
import com.dds.system.service.app.IAppUserService;

/**
 * 会员Service业务层处理
 * 
 * @author gaolianjie
 * @date 2021-04-01
 */
@Service
public class AppUserServiceImpl implements IAppUserService 
{
    @Autowired
    private AppUserMapper appUserMapper;

    /**
     * 查询会员
     * 
     * @param userId 会员ID
     * @return 会员
     */
    @Override
    public AppUser selectAppUserById(String userId)
    {
        return appUserMapper.selectAppUserById(userId);
    }

    /**
     * 查询会员列表
     * 
     * @param appUser 会员
     * @return 会员
     */
    @Override
    public List<AppUser> selectAppUserList(AppUser appUser)
    {
        return appUserMapper.selectAppUserList(appUser);
    }

    /**
     * 新增会员
     * 
     * @param appUser 会员
     * @return 结果
     */
    @Override
    public int insertAppUser(AppUser appUser)
    {
        return appUserMapper.insertAppUser(appUser);
    }

    /**
     * 修改会员
     * 
     * @param appUser 会员
     * @return 结果
     */
    @Override
    public int updateAppUser(AppUser appUser)
    {
        return appUserMapper.updateAppUser(appUser);
    }

    /**
     * 批量删除会员
     * 
     * @param userIds 需要删除的会员ID
     * @return 结果
     */
    @Override
    public int deleteAppUserByIds(String[] userIds)
    {
        return appUserMapper.deleteAppUserByIds(userIds);
    }

    /**
     * 删除会员信息
     * 
     * @param userId 会员ID
     * @return 结果
     */
    @Override
    public int deleteAppUserById(String userId)
    {
        return appUserMapper.deleteAppUserById(userId);
    }
}
